/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.service.impl.DataServiceImpl;
import com.shanhesoft.java.modules.exam.domain.VirtualTrainingDetail;
import com.shanhesoft.java.modules.exam.domain.dto.VirtualTrainingDetailDto;
import com.shanhesoft.java.modules.exam.domain.vo.VirtualTrainingDetailVo;
import com.shanhesoft.java.modules.exam.repository.VirtualTrainingDetailRepository;
import com.shanhesoft.java.modules.exam.service.VirtualTrainingDetailService;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 课程实训题目管理ServiceImpl 课程实训题目管理
 * @author admin
 * @version 2020-11-17 01:03:46
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class VirtualTrainingDetailServiceImpl extends DataServiceImpl<VirtualTrainingDetailRepository, VirtualTrainingDetail, VirtualTrainingDetailDto, String> implements VirtualTrainingDetailService{
	@Override
	public void saveOrUpdate(VirtualTrainingDetailDto virtualTrainingDetailDto) {
		super.saveOrUpdate(virtualTrainingDetailDto);
	}

	@Override
	public IPage<VirtualTrainingDetailVo> findPage(PageModel pm, QueryWrapper wrapper) {
		return repository.findTrainingDetailVoPage(pm, wrapper);
	}

	@Override
	public List<VirtualTrainingDetailVo> findNoPage(QueryWrapper wrapper) {
		return repository.findTrainingDetailVoPage(wrapper);
	}


	@Override
	public VirtualTrainingDetailVo findVoById(String id) {
		return repository.findTrainingDetailVoById(id);
	}
}
